package StudyCode.summary.Basic.myint;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class IntFactorial {
	public static void main(String[] args) {
		int number = 4;
		int factorial = number;
		for (int i = (number - 1); i > 1; i--) {
			factorial = factorial * i;
		}
		System.out.println(number + " 的阶乘是：" + factorial);
	}
}
